-
Notifications
You must be signed in to change notification settings - Fork 14k
Make proc_macro::Group take up less space remove redundant field.
#149229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The field `entire` is redundant. This saves 4 bytes and makes the DelimSpan match up with what the compiler uses.
|
rustbot has assigned @petrochenkov. Use |
This comment has been minimized.
This comment has been minimized.
|
rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead. cc @rust-lang/rust-analyzer |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
Okay, it looks like for whatever reason -_- locally I am able to execute |
|
There is actually a script to run the CI jobs locally with Docker: https://rustc-dev-guide.rust-lang.org/tests/docker.html#testing-with-docker From what it seems at first glance, the tests are just running |
I wondering if it's because rust analyzer is a separate repo? Is pr-check-2 pulling the source from the repo? |
|
|
Which is what I did, I am just not how or why one check is using the older version not in the PR. I tried looking at the CI directory for those briefly nothing immediately sprung out at me. |
|
Yeah, that's mostly why I recommended trying the docker approach because it will give you a better idea of what's running and thus what's failing. Since you can investigate the containers yourself, it'll tell you what's wrong. |
|
That is weird ... rust-analyzer should be building against the intro library sources ... |
The field
entireis redundant. This saves 4 bytes and makes theproc_macro::DelimSpanmatch up with what the compiler uses. MoreoverGroup::set_span()overwrites all the fields anyways so they it's not like there is any chance for entire not to be derived from the open and close. Lastly, the way the compiler constructs the entire field is also be based off the open and close.This takes the size from 20 bytes to 16 bytes which is also a nice power of 2.